package com.xuzhiguang.baidu.pan.sdk.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

/**
 * @author xuzhiguang
 * @date 2020/6/26 13:32
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BasicQuotaResult extends BaiduPanCommonResult {

    /**
     * 总空间大小，单位B
     */
    private Long total;

    /**
     * 7天内是否有容量到期
     */
    private Boolean expire;

    /**
     * 已使用大小，单位B
     */
    private Long used;

    /**
     * 剩余大小，单位B
     */
    private Long free;

    @Override
    public String toString() {
        return "BasicQuotaResult{" +
                "super=" + super.toString() + '\''+
                ", total=" + total +
                ", expire=" + expire +
                ", used=" + used +
                ", free=" + free +
                '}';
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Boolean getExpire() {
        return expire;
    }

    public void setExpire(Boolean expire) {
        this.expire = expire;
    }

    public Long getUsed() {
        return used;
    }

    public void setUsed(Long used) {
        this.used = used;
    }

    public Long getFree() {
        return free;
    }

    public void setFree(Long free) {
        this.free = free;
    }
}
